package io.renren.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.dao.DataCalculateKDao;
import io.renren.entity.DataCalculateKEntity;
import io.renren.service.DataCalculateKService;



@Service("dataCalculateKService")
public class DataCalculateKServiceImpl implements DataCalculateKService {
	@Autowired
	private DataCalculateKDao dataCalculateKDao;
	
	@Override
	public DataCalculateKEntity queryObject(String id){
		return dataCalculateKDao.queryObject(id);
	}
	
	@Override
	public List<DataCalculateKEntity> queryList(Map<String, Object> map){
		return dataCalculateKDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return dataCalculateKDao.queryTotal(map);
	}
	
	@Override
	public void save(DataCalculateKEntity dataCalculateK){
		dataCalculateKDao.save(dataCalculateK);
	}
	
	@Override
	public void update(DataCalculateKEntity dataCalculateK){
		dataCalculateKDao.update(dataCalculateK);
	}
	
	@Override
	public void delete(String id){
		dataCalculateKDao.delete(id);
	}
	
	@Override
	public void deleteBatch(String[] ids){
		dataCalculateKDao.deleteBatch(ids);
	}

	@Override
	public void deleteByMonth(String month) {
		// TODO Auto-generated method stub
		dataCalculateKDao.deleteByMonth(month);
	}
	
}
